﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OtomatSearching.Engine
{
    public struct Oresult
    {
        public int Postion;
        public int Length;

        //public Oresult()
        //{
        //    Postion = -1;
        //    Length = 0;
        //}

        public bool Found
        {
            get { return Postion > -1; }
        }

        public static implicit operator int(Oresult ip_oresult)
        {
            return ip_oresult.Postion;
        }

        public override string ToString()
        {
            return Found.ToString();
        }
    }
}
